Automattic\WooCommerce\GoogleListingsAndAds\Product\WCProductAdapter B

Total Complexity 84
Dependencies 27
Dependents 3
Total lines 657
Lines of code 354
Logical lines of code 181
Comment lines 183
Methods 25
Properties 3

Methods 25

Method Rating Maintainability Complexity Lines of code
get_wc_product_sale_price_effective_date()
A
51 12 28
map_wc_product_sale_price()
A
49 9 29
map_wc_product_image()
S
52 7 24
mapTypes()
S
54 7 21
map_wc_shipping_dimensions()
S
48 5 38
get_wc_product_description()
S
55 6 19
map_gla_attributes()
S
60 4 13
map_wc_product_price()
S
56 3 19
add_shipping_country()
S
57 3 18
map_woocommerce_product()
S
61 3 12
load_validator_metadata()
S
46 1 39
validate_item_group_id()
S
69 3 7
map_wc_shipping_weight()
S
59 2 15
shipping_country_exists()
S
65 3 9
remove_shipping_country()
S
65 3 9
map_wc_product_shipping()
S
63 2 10
map_wc_availability()
S
73 2 5
map_wc_general_attributes()
S
66 2 9
map_tax_excluded()
S
71 1 5
map_wc_prices()
S
74 1 5
is_variation()
S
80 1 3
is_virtual()
S
80 1 3
map_wc_product_id()
S
72 1 5
get_wc_product()
S
82 1 3
setTargetCountry()
S
72 1 6